var express = require('express');
var router = express.Router();
var utils = require('../functions/utils');

router.post('/', function(req,res)
{

	var name = req.body.name;	utils.checkParamValue('name' , name);

	global.master_db.connection.getConnection(function(err,connection)
	{
		if(err)
		{
			throw err;
		}


		var input_param = [name];

		var sql = 'call UTF8_TEST(?)';

		var query = connection.query(sql, input_param , function (err, rows) 
		{
			connection.release();
			if(err)
			{
				throw err;
			}

			res.end("end");

		}); // call api_updateProfile

	}); // getConnection


	
});

module.exports = router;